package field_method14;



public class Person {
        private String name;
        private String gender;
        private int age;
        public Person(String name, String gender, int age) {
            this.name = name;
            this.gender = gender;
            this.age = age;
        }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                '}';
    }
    public static void main(String[] args) {
        Person person = new Person("张三", "男", 25);
        System.out.println(person);
    }
}




